package com.ys.entity.mall;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TM_Cate", catalog="Id")
public class TmCate extends BaseEntity<TmCate> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Img", nameJava="img", typeDataBase="varchar")
	private String img;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TmCate setId(Long id) {
		this.id = id;
		return this;
	}
	public String getName() {
		return name;
	}
	public TmCate setName(String name) {
		this.name = name;
		return this;
	}
	public String getImg() {
		return img;
	}
	public TmCate setImg(String img) {
		this.img = img;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public TmCate setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TmCate setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TmCate setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TmCate setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TmCate tmCate(
		String name,
		String img,
		Integer sortNo,
		Integer status
			) {
		TmCate entity = new TmCate();
		entity.setName(name);
		entity.setImg(img);
		entity.setSortNo(sortNo);
		entity.setStatus(status);
		return entity;
	}
}